package com.example.route;

import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

public class RouteCustomer {
    @RabbitListener(bindings = {
            @QueueBinding(value = @Queue,exchange = @Exchange(value = "directs",type = "direct"),key = {"info"})
    })
    public void receive(String message){
        System.out.println("FanoutCustomer0:"+message);
    }
}
